<?php

include('../model/db.php');

$values['moves.action'] = $_POST['action'];
$values['moves.target'] = $_POST['target'];
$unitid = $_POST['unitid'];
$gameid = $_POST['gameid'];
$userid = $_POST['userid'];

update_db($values, "moves", "unit = '$unitid' AND game_id = '$gameid' AND user_id = '$userid'");
?>